<?php
require_once('../includes/SmartyManager.class.php');
require_once('../includes/DB.class.php');
require_once('../includes/Verifier.class.php');
require_once('../includes/Filter.class.php');
require_once('../includes/ConsignmentFileAccountant.class.php');

$smarty = SmartyManager::getSmarty();

$consignment = new ConsignmentFileAccountant($_GET['id']);
$smarty->assign('id', $_GET['id']);

$consignment->execute();

$smarty->assign(array('certificationNumber' => $consignment->getCertificationNumber(),
		'certificationCodification' => $consignment->getCertificationCodification(),
		'facheCertificationNumber'	=> $consignment->getFacheCertificationNumber(),
		'orderNumber' => $consignment->getOrderNumber(),
		'orderSubitemNumber' => $consignment->getOrderSubitemNuber(),
		'purchaseNumber' => $consignment->getPurchaseNumber(),
		'consignmentBatch' => $consignment->getConsignmentBatch(),
	));

$smarty->display("fileConsignment.html");
?>